<template>
  <div class="navbar">
    <ul>
      <li @click="clickchange('diany')"><a>热门影片</a></li>
      <li @click="clickchange('tongc')"><a>同城活动</a></li>
      <li @click="clickchange('my')"><a>关于我的</a></li>
      <router-link to="/login"><a>关于我的</a></router-link>
    </ul>
  </div>
</template>
<script>
  export default{
    data: function () {
      return {}
    },
    methods: {
      clickchange (type) {
        this.bus.$emit('tabbar', type)
      }
    }
  }
</script>

<style>
  .navbar {
    width: 100%;
    background-color: blue;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 49px;

  }

  .navbar > ul {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 100%;
    text-align: center;
  }

  .navbar > ul > li {
    flex: 1;

    cursor: pointer;
    height: 100%;
  }

  .navbar > ul > li ~ li {
    border-left: 1px solid red;
  }

  .navbar > ul > li > a {
    line-height: 49px;
    width: 100%;
    height: 100%;
    color: #ccc;
  }
</style>
